﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Browser;

namespace eventr.View.Util
{
    public class Clipboard
    {
        /// <summary>
        /// Helper to set clip board data (works only in IE)
        /// </summary>
        /// <param name="text"></param>
         public static void SetText(string text)  
         {  
             // document.window.clipboardData.setData(format, data);  
             var clipboardData = (ScriptObject)HtmlPage.Window.GetProperty("clipboardData");
             
             if (clipboardData != null)
             {
                 clipboardData.Invoke("setData", "text", text);
             }
                 
         }  
    }
}
